package com.wangxiaoxuan.seckill.service;

import com.wangxiaoxuan.seckill.pojo.User;

import javax.servlet.http.HttpServletResponse;

public interface CaptchaService {

    /**
     * 获取验证码
     * @param user
     * @param goodsId
     * @param response
     */
    public void getCaptcha(User user, Long goodsId, HttpServletResponse response);

    /**
     * 对验证码进行验证
     * @param user
     * @param goodsId
     * @param captcha
     * @return
     */
    public boolean checkCaptcha(User user, Long goodsId, String captcha);
}
